using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PACKETPARSERMAX20.CORE;

namespace PACKETPARSERMAX20.CORE.DEFINITIONS
{
    public class MSG_PVP_LOG_DATA_DEF : DefinitionBase
    {

        public override bool Process()
        {
            
            return true; //IGNORED
            //ResetPosition();

            //if (Direction == 1)
            //{
            //    byte type = ReadByte();                                   // seems to be type (battleground=0/arena=1)
            //    if (type > 0)                                                // arena
            //    {
            //        for (int i = 0; i < 2; i++)
            //        {
            //            UInt32 rating = ReadUInt32();                      // rating change: showed value - 3000
            //            if (ClientBuild >= 8089)
            //            {
            //                UInt32 ratingchange = ReadUInt32();                             // 2.4.0, has some to do with rating change...
            //            }
            //            string text = ReadString();                             // some unknown string
            //            base.Warning += " '" + text + "' ";
            //        }
            //    }


            //    byte bgstate = ReadByte();                                  // bg ended==1 bg in progress==0
            //    if (bgstate == 1)
            //    {
            //        byte side = ReadByte();                    // who win
            //    }

            //    Int32 scoresize = ReadInt32();

            //    for (int i = 0; i < scoresize; i++)
            //    {
            //        UInt64 playerguid = ReadUInt64();
            //        Int32 KillingBlows = ReadInt32();
            //        if (type > 0)
            //        {
            //            // this value is team (green/gold)?
            //            // that part probably wrong

            //            byte team = ReadByte();
            //        }
            //        else
            //        {
            //            Int32 HonorableKills = ReadInt32();
            //            Int32 Deaths = ReadInt32();
            //            Int32 BonusHonor = ReadInt32();        // bonus honor
            //        }
            //        Int32 DamageDone = ReadInt32();            // damage done
            //        Int32 HealingDone = ReadInt32();           // healing done
            //        switch ((BattleGroundTypeId)Core.CurrentBattleGroundTypeId)                             // battleground specific things
            //        {
            //            case BattleGroundTypeId.BATTLEGROUND_AV:
            //                UInt32 fieldcount_AV = ReadUInt32();                // count of next fields
            //                UInt32 GraveyardsAssaulted = ReadUInt32();  // GraveyardsAssaulted
            //                UInt32 GraveyardsDefended = ReadUInt32();   // GraveyardsDefended
            //                UInt32 TowersAssaulted = ReadUInt32();      // TowersAssaulted
            //                UInt32 TowersDefended = ReadUInt32();       // TowersDefended
            //                UInt32 MinesCaptured = ReadUInt32();        // MinesCaptured
            //                break;
            //            case BattleGroundTypeId.BATTLEGROUND_WS:
            //                UInt32 fieldcount_WS = ReadUInt32();                // count of next fields
            //                UInt32 FlagCaptures_WS = ReadUInt32();         // flag captures
            //                UInt32 FlagReturns = ReadUInt32();          // flag returns
            //                break;
            //            case BattleGroundTypeId.BATTLEGROUND_AB:
            //                UInt32 fieldcount_AB = ReadUInt32();                // count of next fields
            //                UInt32 BasesAssaulted = ReadUInt32();       // bases asssulted
            //                UInt32 BasesDefended = ReadUInt32();        // bases defended
            //                break;
            //            case BattleGroundTypeId.BATTLEGROUND_EY:
            //                UInt32 fieldcount_EY = ReadUInt32();                // count of next fields
            //                UInt32 FlagCaptures_EY = ReadUInt32();         // flag captures
            //                break;
            //            case BattleGroundTypeId.BATTLEGROUND_NA:
            //            case BattleGroundTypeId.BATTLEGROUND_BE:
            //            case BattleGroundTypeId.BATTLEGROUND_AA:
            //            case BattleGroundTypeId.BATTLEGROUND_RL:
            //                //case BattleGroundTypeId.BATTLEGROUND_SA:                           // wotlk
            //                //case BattleGroundTypeId.BATTLEGROUND_DS:                           // wotlk
            //                //case BattleGroundTypeId.BATTLEGROUND_RV:                           // wotlk
            //                Int32 Int32_1 = ReadInt32();                          // 0
            //                break;
            //            default:

            //                Int32 Int32_2 = ReadInt32();
            //                break;
            //        }
            //    }
            //}

            //return Validate();
        }
    }
}

